/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
using System.Collections.Generic;

using Aliyun.Acs.Core;
using Aliyun.Acs.Core.Http;
using Aliyun.Acs.Core.Transform;
using Aliyun.Acs.Core.Utils;
using Aliyun.Acs.live.Transform;
using Aliyun.Acs.live.Transform.V20161101;

namespace Aliyun.Acs.live.Model.V20161101
{
    public class SetLiveStreamDelayConfigRequest : RpcAcsRequest<SetLiveStreamDelayConfigResponse>
    {
        public SetLiveStreamDelayConfigRequest()
            : base("live", "2016-11-01", "SetLiveStreamDelayConfig", "live", "openAPI")
        {
            if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
            {
                this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Endpoint.endpointMap, null);
                this.GetType().GetProperty("ProductEndpointType").SetValue(this, Endpoint.endpointRegionalType, null);
            }
        }

		private string flvLevel;

		private string hlsLevel;

		private int? rtmpDelay;

		private string domainName;

		private long? ownerId;

		private int? flvDelay;

		private string rtmpLevel;

		private int? hlsDelay;

		public string FlvLevel
		{
			get
			{
				return flvLevel;
			}
			set	
			{
				flvLevel = value;
				DictionaryUtil.Add(QueryParameters, "FlvLevel", value);
			}
		}

		public string HlsLevel
		{
			get
			{
				return hlsLevel;
			}
			set	
			{
				hlsLevel = value;
				DictionaryUtil.Add(QueryParameters, "HlsLevel", value);
			}
		}

		public int? RtmpDelay
		{
			get
			{
				return rtmpDelay;
			}
			set	
			{
				rtmpDelay = value;
				DictionaryUtil.Add(QueryParameters, "RtmpDelay", value.ToString());
			}
		}

		public string DomainName
		{
			get
			{
				return domainName;
			}
			set	
			{
				domainName = value;
				DictionaryUtil.Add(QueryParameters, "DomainName", value);
			}
		}

		public long? OwnerId
		{
			get
			{
				return ownerId;
			}
			set	
			{
				ownerId = value;
				DictionaryUtil.Add(QueryParameters, "OwnerId", value.ToString());
			}
		}

		public int? FlvDelay
		{
			get
			{
				return flvDelay;
			}
			set	
			{
				flvDelay = value;
				DictionaryUtil.Add(QueryParameters, "FlvDelay", value.ToString());
			}
		}

		public string RtmpLevel
		{
			get
			{
				return rtmpLevel;
			}
			set	
			{
				rtmpLevel = value;
				DictionaryUtil.Add(QueryParameters, "RtmpLevel", value);
			}
		}

		public int? HlsDelay
		{
			get
			{
				return hlsDelay;
			}
			set	
			{
				hlsDelay = value;
				DictionaryUtil.Add(QueryParameters, "HlsDelay", value.ToString());
			}
		}

        public override SetLiveStreamDelayConfigResponse GetResponse(UnmarshallerContext unmarshallerContext)
        {
            return SetLiveStreamDelayConfigResponseUnmarshaller.Unmarshall(unmarshallerContext);
        }
    }
}
